package com.ygqh.baby.po;

import java.math.BigDecimal;

import com.ygqh.baby.ao.DataStatus;

public class ActionProduct {
	private String skuCode;

	private Long id;

	private Long actionId;

	private String actionName;

	private String productCode;

	private String productName;

	private String shortName;

	private String size;

    private String barCode;

    private String imagePath;

	private BigDecimal salesPrice;

	private Long amount;

	private DataStatus status;

	private String remark;
	
	/*-------------------------------*/
	private Long productAmount;
	
	private Long packId = 0L;
	
	private BigDecimal packPrice;
	
	private Long packAmount = 0L;

	@Override
	public int hashCode() {
		return (actionId + skuCode).hashCode();
	}

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof ActionProduct) {
			ActionProduct p = (ActionProduct) obj;
			if (actionId.equals(p.getActionId()) && skuCode.equals(p.getSkuCode())) {
				return true;
			}
		}
		return false;
	}

	public ActionProduct() {
		super();
	}

	public ActionProduct(String skuCode, Long actionId, String actionName, String productCode, String productName, String shortName, String size,
			BigDecimal salesPrice, Long amount, DataStatus status, String remark) {
		super();
		this.skuCode = skuCode;
		this.actionId = actionId;
		this.actionName = actionName;
		this.productCode = productCode;
		this.productName = productName;
		this.shortName = shortName;
		this.size = size;
		this.salesPrice = salesPrice;
		this.amount = amount;
		this.status = status;
		this.remark = remark;
	}

	public String getSkuCode() {
		return skuCode;
	}

	public void setSkuCode(String skuCode) {
		this.skuCode = skuCode == null ? null : skuCode.trim();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getActionId() {
		return actionId;
	}

	public void setActionId(Long actionId) {
		this.actionId = actionId;
	}

	public String getActionName() {
		return actionName;
	}

	public void setActionName(String actionName) {
		this.actionName = actionName == null ? null : actionName.trim();
	}

	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode == null ? null : productCode.trim();
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName == null ? null : productName.trim();
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName == null ? null : shortName.trim();
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size == null ? null : size.trim();
	}

	public BigDecimal getSalesPrice() {
		return salesPrice;
	}

	public void setSalesPrice(BigDecimal salesPrice) {
		this.salesPrice = salesPrice;
	}

	public Long getAmount() {
		return amount;
	}

	public void setAmount(Long amount) {
		this.amount = amount;
	}

	public DataStatus getStatus() {
		return status;
	}

	public void setStatus(DataStatus status) {
		this.status = status;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark == null ? null : remark.trim();
	}

	public String getBarCode() {
		return barCode;
	}

	public void setBarCode(String barCode) {
		this.barCode = barCode;
	}

	public BigDecimal getPackPrice() {
		return packPrice;
	}

	public void setPackPrice(BigDecimal packPrice) {
		this.packPrice = packPrice;
	}

	public Long getPackAmount() {
		return packAmount;
	}

	public void setPackAmount(Long packAmount) {
		this.packAmount = packAmount;
	}

	public Long getProductAmount() {
		return productAmount;
	}

	public void setProductAmount(Long productAmount) {
		this.productAmount = productAmount;
	}

	public Long getPackId() {
		return packId;
	}

	public void setPackId(Long packId) {
		this.packId = packId;
	}

	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}
}